SERVER-9153 Isolate synchronization primitives into one library