In a recent survey, 21% of home buyers regretted their choice of lender. Here’s how to do better next time.