All land sold under decree of the chancery court shall be held liable and subject to a lien for the unpaid purchase money therefor as if a mortgage had been executed by the purchaser and duly recorded; and said lien shall exist until actual payment of the purchase money, or until, by order of the court or chancellor, the same shall be discharged.