os: Do not use Pthreads barrier functions on Mac OS X.