Minor mutex cleanups.

@michaelcahill, just some minor cleanups in the mutex code, but I wanted you to take a look before it went in.