spi: fixed crash when calling spi_bus_free when not initialized (v4.2) See merge request espressif/esp-idf!17610