Fixed run_gdb_command always sending to the same thread.