Implement OpenThread() winapi call.
Implement a few pthreads functions.

diff --git a/server/protocol.def b/server/protocol.def
index 0cc3f26..a13fcc7 100644
--- a/server/protocol.def
+++ b/server/protocol.def
@@ -462,6 +462,16 @@
 @END
 
 
+/* Open a handle to a thread */
+@REQ(open_thread)
+    void*        tid;          /* thread id to open */
+    unsigned int access;       /* wanted access rights */
+    int          inherit;      /* inherit flag */
+@REPLY
+    handle_t     handle;       /* handle to the thread */
+@END
+
+
 /* Wait for handles */
 @REQ(select)
     int          flags;        /* wait flags (see below) */