Section 1322(c)(1) of the Bankruptcy Code allows debtors to cure defaults and reinstate a mortgage on their principal residence "until such residence is sold at a foreclosure sale that is conducted in accordance with...more