[ubsan] Drop use of __atomic_exchange_n for now to fix build for some.

Need a more reliable way to check for support of this intrinsic.