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