target/cortex_a: fix waiting for target halted after step