[Issue 9372] New: Use POSIX semaphores by default on MacOS