That any and all liens, encumbrances or money claims for improvements on lands, authorized or permitted in ejectment actions or equitable proceedings for the recovery of lands under reversionary provisions contained in deeds to reality [realty], whether heretofore or hereafter claimed, may be waived by instrument in writing executed either before or after the passage and approval of this act [this section]; provided, further, that in no event shall any such liens, encumbrances or claims be asserted by the grantee, his heirs or assigns, as against his grantor, his heirs or assigns, who becomes entitled to possession of such lands under the terms of the reversionary clauses contained in any such deed to realty.
NMS § 42-4-20