The plockstat command is a front-end to DTrace that can be used to print statistics about POSIX mutexes and read/write locks.