Remove the non-atomic COMPARE_EXCHANGE macro