Run WH_KEYBOARD_LL and WH_MOUSE_LL hooks in the context of the thread
that set the hook.

diff --git a/server/user.h b/server/user.h
index e4229a0..a075dd7 100644
--- a/server/user.h
+++ b/server/user.h
@@ -50,6 +50,7 @@
 /* hook functions */
 
 extern void close_global_hooks(void);
+extern void remove_thread_hooks( struct thread *thread );
 
 /* queue functions */