Basically, the semantics of C11 and Fuchsia locks are very close to PThreads. Most of the work was boilerplate to make sure the correct check name appears in the diagnostics. If you have any idea how to reduce this boilerplate I'd like to know :)
I had to add a dummy check that can always be enabled. Otherwise, CheckerManager::getChecker would trigger an assertion fail due to attempting to get a checker that was potentially not enabled.
I plan to add more tests but wanted to share early to get some feedback about the approach.
I wouldn't mind alpha.core given that these functions belong to the standard library.