(d) Any redemption by a corporation of its shares shall be subject to the provisions of Chapter 5 (commencing with Section 500).
Nothing in this section shall prevent a corporation from creating a sinking fund or similar provision for, or entering into an agreement for, the redemption or purchase of its shares to the extent permitted by Chapter 5, but unless such purchase or redemption is permitted under Chapter 5, the holder of shares to be so purchased or redeemed shall not become a creditor of the corporation.