Kinetis: check/switch run mode before flash operation