A recent analysis of mortgage data shows just how much harder it is to get a home loan if you’re self-employed.