Reset metatables inside __gc functions.