stm32: f4: flash: support extended sector ranges

F42xx and F43xx have extended sector ranges.

Reported-by: H2OBrain@irc

Alternative version of https://github.com/libopencm3/libopencm3/pull/385