If, under a will, the sale of real estate by a trustee, executor or administrator with the will annexed is dependent upon the consent of a person who has deceased, the probate court having jurisdiction of the settlement of the estate may, in its discretion, and if all parties interested assent, authorize the sale and conveyance of such real estate in like manner as if no such consent had been required.
Mass. Gen. Laws ch. 204, § 2