IRGen: Calculate HasMetadataPattern correctly for generic classes
IRGen: Calculate HasMetadataPattern correctly for generic classes

This is NFC, until we start using this new property as part of
resilient class layout.

khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift