[PATCH 6.7 025/162] Bluetooth: hci_sync: Check the correct flag before starting a scan