THIRD AMENDED AND RESTATED SECURITY AGREEMENT Dated as of December 23, 2016 among BASIC ENERGY SERVICES, INC. and the other Debtors parties hereto in favor of BANK OF AMERICA, N.A., as Administrative Agent