gallium/util: replace pipe_mutex_lock() with mtx_lock()