When a lease of land with a rent payable is made for the purpose of erecting a mill or other buildings thereon, such buildings and all the interest of the lessee are subject to a lien and liable to be attached for the rent due. Such attachment, made within 6 months after the rent becomes due, is effectual against any transfer of the property by the lessee.