STOCK PURCHASE AGREEMENT dated as of July 18, 2011 by and among A. O. Smith Corporation, the Shareholders of Lochinvar Corporation, the Shareholders of Lochinvar Limited, and William L. Vallett, Jr., as Sellers’ Representative