do  MPI_Barrier at the end of shmem_init() code but before we use shmem native collectives
Refs: #3763
Add support for OSX builtin atomics.

OSX atomic support is disabled by default. Enable with --enable-osx-builtin-atomics.

Fixes #2120