A Generalization of Gasper's Kernel for Hahn Polynomials: Application to Pollaczek Polynomials