MEDIUM: threads/lua: Cannot acces to the socket if we try to access from another thread.

We have two y for nsuring that the data is not concurently manipulated:
 - locks
 - running task on the same thread.
locks are expensives, it is better to avoid it.

This patch cecks that the Lua task run on the same thread that
the stream associated to the coprocess.

TODO: in a next version, the error should be replaced by a yield
and thread migration request.
diff --git a/include/types/hlua.h b/include/types/hlua.h
index 74dcf00..e8daf53 100644
--- a/include/types/hlua.h
+++ b/include/types/hlua.h
@@ -156,6 +156,7 @@
 struct hlua_socket {
 	struct xref xref; /* cross reference with the stream used for socket I/O. */
 	luaL_Buffer b; /* buffer used to prepare strings. */
+	unsigned long tid; /* Store the thread id which creates the socket. */
 };
 
 struct hlua_concat {