STM32: flash: make flash_wait() a voluntary preemption point