Atomics: make use of the "cmpxchg weak" instruction.