Require PatternSynonyms language flag when encountering a use of pattern synonym
(#8961)