Using clang-compatible atomic intrinsics.

This eliminates the _n variants, which are apparently GCC only.