[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 

// If SPI is to used from within an interrupt,
Whut?
// If SPI is used from within an interrupt,
:-)