gallium/util: replace pipe_mutex with mtx_t