STOCK PURCHASE AGREEMENT between MIDDLEFIELD BANC CORP. and BANK OPPORTUNITY FUND LLC Dated as of August 15, 2011