RAII version of  POSIX mutexes.