Refactored local::mutex to be standard conformant