[ruby-core:113824] [Ruby master Feature#19712] IO#reopen removes singleton class