Section 10. Whenever at such sheriff's sale the holder of a lien, subsequent to that upon which the sale was had, shall become the purchaser of the said property, he shall not be entitled to take any proceedings to recover or collect the amount of the debt secured by the said lien or encumbrance, until and unless a deficiency judgment shall be entered on such debt, within the time and in the manner as hereinbefore provided, in proceedings to obtain a deficiency judgment under the mortgage upon which the sheriff's sale was had, and in such case, all the provisions of this act shall apply with the same force and effect as if the said sale had been held upon said subsequent lien or any obligation secured thereby.