gatomic: use GCC C11-style atomics, if available