ATOMIC_FLAG_INIT doesn't take argument (always false)
Use final stdatomic macro