Refactored local::mutex to be standard conformant

Why did you remove this check?