MINOR: lua: Add a flag on lua context to know the yield capability at run time

When a script is executed, a flag is used to allow it to yield. An error is
returned if a lua function yield, explicitly or not. But there is no way to
get this capability in C functions. So there is no way to choose to yield or
not depending on this capability.

To fill this gap, the flag HLUA_NOYIELD is introduced and added on the lua
context if the current script execution is not authorized to yield. Macros
to set, clear and test this flags are also added.

This feature will be usefull to fix some bugs in lua actions execution.
diff --git a/src/hlua.c b/src/hlua.c
index 6a9073e..0de6342 100644
--- a/src/hlua.c
+++ b/src/hlua.c
@@ -1277,6 +1277,9 @@
 	HLUA_CLR_CTRLYIELD(lua);
 	HLUA_CLR_WAKERESWR(lua);
 	HLUA_CLR_WAKEREQWR(lua);
+	HLUA_CLR_NOYIELD(lua);
+	if (!yield_allowed)
+		HLUA_SET_NOYIELD(lua);
 
 	/* Update the start time and reset wake_time. */
 	lua->start_time = now_ms;