or1k: Switch to use native atomics.

Copy the aarch64 atomic.h to or1k to use GCC built-ins for atomic
operations. This will remove the usage of syscalls for atomic operations
and pthreads.