SECOND AMENDED AND RESTATED STOCK ESCROW AGREEMENT