buffer: Use an inline function instead of a macro for gst_buffer_replace()