spi: fix issue with closing DMA before CPU reset Closes FCS-484 See merge request espressif/esp-idf!9844