[PATCH 6.1 042/215] Bluetooth: hci_sync: Check the correct flag before starting a scan