Switch atomic release API from __sync to __atomic builtin.