Bluetooth: Introduce hci_dev_test_and_set_flag helper macro