Refactored local::mutex to be standard conformant

Nevermind. I just saw the assert above.