[SPI] Missing concurrency control in SPI bus
The lack of concurrency control in the SPIBus class could possibly lead to race conditions. Foe example: if two threads concur to use the same SPI Bus, the bus configuration of the first thread could be altered by the second if the first is preempted. This is due to the fact that SPITransaction class only configure the bus at construction without locking the bus.
Edited by Camillo Nicoletti