spi: fixed crash when calling spi_bus_free when not initialized Closes IDFGH-7024 See merge request espressif/esp-idf!17573