A plan to help homeowners avoid foreclosure was good, in principle. In practice, it’s pushed the mortgage business toward yet another potential nightmare