Running a mortgage company, turns out, isn’t free, and lenders are trying to cut costs and increase efficiency everywhere.