server: Moved get/set_thread_context implementation to ptrace.c.