[Git][ghc/ghc][master] Fix tcLookupId panic with RequiredTypeArguments and PatternSynonyms (#27586)