BUG/MINOR: lua: Add missing string length for lua sticktable lookup

In hlua_stktable_lookup(), the key length is never set so all
stktable:lookup("key") calls return nil from lua.

This patch must be backported as far as 1.9.

[Cf: I slightly updated the patch to use lua_tolstring() instead of
     luaL_checkstring() + strlen()]

(cherry picked from commit 31a841c323b0e9692695a57d4747f71a32b9fb68)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 241d378c400da600cc08feac3269b47fdddc21c2)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/src/hlua_fcn.c b/src/hlua_fcn.c
index 8353cd7..450d49d 100644
--- a/src/hlua_fcn.c
+++ b/src/hlua_fcn.c
@@ -617,7 +617,7 @@
 	t = hlua_check_stktable(L, 1);
 	smp.data.type = SMP_T_STR;
 	smp.flags = SMP_F_CONST;
-	smp.data.u.str.area = (char *)luaL_checkstring(L, 2);
+	smp.data.u.str.area = (char *)lua_tolstring(L, 2, &smp.data.u.str.data);
 
 	skey = smp_to_stkey(&smp, t);
 	if (!skey) {