lavu: add wrappers for the pthreads mutex API