Convert finalizers in various Lua* classes to a WeakReference-based garbage collection mechanism, to avoid multi-threaded access to a Lua state