all pios_spi: fixed potential deadlock in non freertos mode