SIXTH AMENDMENT, WAIVER AND CONSENT TO CREDIT AND SECURITY AGREEMENT AND GUARANTY AND JOINDER