[PATCH v6 4/7] tools: Add atomic_test_and_set_bit()