AMENDMENT NO. 6 TO FOURTH AMENDED AND RESTATED CREDIT AND SECURITY AGREEMENT