esp_wifi: fix WiFi scan and connect bugs when coexist with Bluetooth See merge request espressif/esp-idf!6840