Avoiding gain at the S shareholder level when a loan is repaid