A spouse entitled to rights of occupation may by a release in writing release those rights or release them as respects part only of the dwelling house affected by them.
Where a contract is made for the sale of an estate or interest in a dwelling house, or for the grant of a lease or underlease of a dwelling house, being (in either case) a dwelling house affected by a charge registered under section 2 of the Land Charges Act 1972 or section 2(8) above, then, without prejudice to subsection (1) above, the rights of occupation constituting the charge shall be deemed to have been released on the happening of whichever of the following events first occurs—
A spouse entitled by virtue of section 2 above to a charge on an estate or interest may agree in writing that any other charge on, or interest in, that estate or interest shall rank in priority to the charge to which that spouse is so entitled.