Solved problem with binding, stopping Lua garbage collector in C/C++ code, and restarting it before returning to Lua