improve workaround for https://github.com/tessel/beta/issues/356 and fix up nested transaction handling for SPI_TRANSACTION_WRAPPER