Subject to the lien of the mortgage, mortgaged property may be sold under other process. If the mortgage is foreclosed, the mortgagee may place his execution in the hands of the officer making the sale, may cause the unencumbered title to be sold, and may claim the proceeds according to the date of his lien.