atomic: fix atomic_long_cmpxchg/xchg for 64 bit architectures