Alexandre Julliard : server: Moved some common bits of get/ set_thread_context to thread.c.