Handle stack reallocation in debug.setmetatable() and lua_setmetatable().