All contracts for the forfeiture of property subject to a lien, in satisfaction of the obligation secured thereby, and all contracts in restraint of the right of redemption from a lien, are void, except in the case specified in Section 1122.
R.L. 1910, § 3832.