flash/nor/stm32f1x: tidy up async algo supporting code