Mutex unix implementation.