[ruby-core:121820] [Ruby Bug#21267] respond_to check in Class#allocate is inconsistent