locking/atomic: Introduce atomic_try_cmpxchg()