Atomic fallback implementation for GCC
