Fix compare_exchange_weak tests to allow spurious failure
am: 78661f52b5

Change-Id: I6d029a6e36094f140381f3f6ad4b96599e33da0c