Added agl_atomic_test_and_set and agl_atomic_test_and_clear.