or1k: Add support for using the native atomics.

This adds support for the __sync and __atomics builtins for 1, 2 and 4
bytes of memory. Since the native instructions only protect a full word,
use 4 bytes where possible.