gdbserver: Reset current_thread when the thread is removed.