util, atomic: update atomic_xchg.