FLASH: Make sure that the flash unlock register state is cleared before trying to unlock the flash.