spiflash: Add spiflash_is_idle

So we can tell when it's safe to enter STOP mode.