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