If a mortgage on realty or personalty is not foreclosed and the equity of redemption is levied on by other writs of fieri facias by consent of the mortgagor and mortgagee and the plaintiff in the fi. fa. levied, the entire estate may be sold and the mortgagee may claim under his lien in the same manner as if his mortgage were foreclosed.