flex_array: fix flex_array_put_ptr macro to be valid C