Section 12F. Wherever real estate has been unassessed because the right or title thereto has been doubtful or unascertained because of missing records or otherwise, and a municipality has conducted a search and has determined the record ownership of said real estate, the said real estate shall become subject to a lien for the expenditures incurred by said municipality in the determination of said ownership. The assessor of said municipality shall forthwith cause to be recorded in the registry of deeds for the county or district in which the real estate is located a statement containing the name of the owner or owners of said real estate, an adequate description thereof, and the amount of said expenditures incurred, for which amount a lien on said real estate shall become effective as of the time and date of its recording. No such lien shall be effective against a bona fide purchaser or other transferee without notice of such lien. The recording fee for such statement shall be added to and become a part of the expenditures constituting said lien.