Here’s how long it takes to close on a home on average — and a few things you can do to speed up the process.