Mortgage forbearance and deferment can help you avoid foreclosure.