STOCK PURCHASE AGREEMENT dated as of August 22, 2005 between THE GOLDMAN SACHS GROUP, INC., as Buyer and ALLMERICA FINANCIAL CORPORATION, as Seller