flash/nor/rp2040: check target halted before flash operation