Move PredicateBuilder instantiation to constructor

In order to maintain thread safety and prevent race condition from memoization.
Merge pull request #17898 from mrgilman/move-predicate-builder-to-constructor

Move PredicateBuilder instantiation to constructor