Add tests for __sync_bool_compare_and_swap and __sync_val_compare_and_swap