Fix ObjectSpace.each_object exploit