scripts/gdb: add lx_thread_info_by_pid helper