C++20 deprecated ATOMIC_FLAG_INIT thinking it was deprecated in C when it wasn't. It is expected to be undeprecated in C++23 as part of LWG3659 (https://wg21.link/LWG3659), which is currently Tentatively Ready as of yesterday.
I think similar changes should happen on the libc++ side, basically to undo parts of 4e730aeb731cb9b7116ed51bbef662d363f72b66, so I've included some of the libc++ folks here to see if they agree.