gdb: use correct target in notify_thread_exited()

clean_up_just_stopped_threads_fsms() may call notify_thread_exited() in
the context of a thread from a different target.

Switch to the thread's inferior to get the target right.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
1 file changed