[Sanitizer] Add basic test for atomic_compare_exchange implementation