Add atomic(9) implementations of atomic operations. These are used on FreeBSD for non-x86 architectures.