on aarch64, non-gnu targets likely want to turn outline atomics off in their toolchain (since outlining is ineffective without the hwcap based initializer that can select lse atomics at runtime).
Agreed. I'd be happy to review such a patch
i also opened bug 95129 to fix the runtime detection.