[AVR] SPI atomicity fix avr (part 1/2 of #2376)

This pull request broke into 6 simpler commits the big patch in #2376.

/cc @xxxajk @PaulStoffregen 

I tested a few other alternatives, and it appears that there is enough latency in doing the other assignments so the nop is not needed.