Inline the mutexes into their containers.

This'll be easier on the garbage collector, I think, and is definitely more idiomatic.