[Sema] atomic_compare_exchange: check failure memory order (#74959)