spi: Fix race condition in stop_queue()