This is consistent with how xpcom's Mutex has its platform-dependent code in mozglue, and will allow readers-writer locks in mozglue without duplication. Differential Revision: https://phabricator.services.mozilla.com/D139669