flash: fix stm32f1x dual bank detection