FORM OF AMENDED AND RESTATED STOCK PLEDGE AGREEMENT