Implement test_and_change_bit in SMP safe manner using AMOXOR.