lindbg: fix wait_target after thread_attach