Make SPI chip select operations atomic