[stm32] [spi] Added support for before_cb, made the callbacks happen while slave is still selected, added support for 0 output_length case