In the case of sale under execution process of any real estate upon which any such tax lien shall exist, such lien shall be transferred to the fund arising from such sale in the hands of the officer making the same; provided that if such fund shall not be sufficient to pay and discharge the said tax lien by reason of said real estate having been sold subject to another or other lien or liens, then