CONSENT AND AMENDMENT NO. 4 TO FIRST LIEN TERM LOAN AND GUARANTY AGREEMENT