Merge pull request #98 from bgamari/master

spiflash: Add spiflash_set_protection
spi: Add spi_is_idle

This allows us to safely determine when it's safe to sleep the core
spiflash: Remove spiflash_is_idle

This wasn't safe