Only use language support feature CXType_Atomic if the compiler version supports it
CXType_Atomic was introduced around clang 11.0, we currently enforce a requirement for 6.0 or higher.
This MR wraps the code in appropriate defines to fix the build for older compilers