CONSENT AND AMENDMENT NO. 2 TO SECOND AMENDED AND RESTATED CREDIT AGREEMENT