add compare_and_swap check in check-atomic.m4