target/arm_dap: clean up dap_configure code