src/lua.js: Use main thread when dealing with `Lua.Proxy`s. Fixes #4