In a recent discussion I discovered a LuaProc extension that lets you pass tables between threads. Maybe you can give it a try: https://github.com/lmillanfdez/luaproc-master.