LIMITED WAIVER AND AMENDMENT NO. 12 TO AMENDED AND RESTATED NOTE PURCHASE AGREEMENT