Add pthread_mutex mode for __APPLE__ Computers

because their sem_init is implemented as exit(1)