target-i386: emulate XCHG using atomic helper