[Patch] The comparison in a compare exchange should not take place in VOIDmode