Skip tests if the multiprocessing.synchronize module is missing, if there is no available semaphore implementation, or if creating a lock raises an OSError.
test.support/skip_if_broken_multiprocessing_synchronize
skip_if_broken_multiprocessing_synchronize