Add _sync atomics for old gcc compilers