The Frick gathers 25 works by the painter Thomas Gainsborough, a visual compendium of the social biggies in British society.