Fix reversed compare_exchange check.

We were incorrectly stopping a retry-loop when compare_exchange_strong
returned true instead of false. This could lead to races if multiple
threads tried to pause allocations simultaneously.

Test: ./test.py --host
Bug: 146436130
Change-Id: I46ab86010d24148d640af0c51a5268b3eef0d300
1 file changed