jtag: fix error on TCL command "return" in jtag event handler