fix(util/luaref): warnings produced by valgrind

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(util/luaref): warnings produced by valgrind