What does an interest-rate lock cover?

Borrower confused over last-minute lender fees