Refactored local::mutex to be standard conformant

But it's guarded by mutecis, that's what made me wonder actually.