All functions that use `getmetatable` use the previously set metatable instead of the one stored in the Lua registry.