target/adi_v5_swd: fix segfault when calling jtag_to_swd