[HSA-700 Test] AtomicExchange is not Atomic

The implementation of the atomic exchange instruction was not actually atomic.
[HSA-700 Fix] Atomic Exchange is not Atomic

Keep retrying the exchange until it is successful.