target/arm_dap: fix segmentation fault in 'dap info' cmd