Each loan made by the Secretary or other lenders under this subchapter that is insured or guaranteed in accordance with this subsection shall, when offered for sale to the public, be accompanied by agreements for the benefit of the borrower under the loan that provide that—
(A) the purchaser or any assignee of the loan shall not diminish any substantive or procedural right of the borrower arising under this subchapter;
(B) upon any substantial default of the borrower, but prior to foreclosure, the loan shall be assigned to the Secretary for the purpose of avoiding foreclosure; and
(C) following any assignment under subparagraph (B) and before commencing any action to foreclose or otherwise dispossess the borrower, the Secretary shall afford the borrower all substantive and procedural rights arising under this subchapter, including consideration for interest subsidy, moratorium, reamortization, refinancing, and appeal of any adverse decision to an impartial officer.