If a Farm Credit Bank forgives and writes off, under section
2202a of this title, any of the principal outstanding on a loan made to any borrower, the Federal land bank association of which the borrower is a member and stockholder shall cancel the same dollar amount of borrower stock held by the borrower in respect of the loan, up to the total amount of such stock, and, to the extent provided for in the bylaws of the bank relating to its capitalization, the bank shall retire an equal amount of stock owned by the Federal land bank association.