After 21 years as managing partner of New York Life-Boston, Peter J. McAvinn likes to think he’s learned a thing or two about establishing an environment where people like to work.