In case the holder of any such mortgage, judgment, recognizance, or other security, shall fail or refuse, on such tender being made, to execute an assignment or transfer as required, it shall be the duty of the court of common pleas of the county in which said mortgage, judgment, recognizance, or security is entered, or of the county in which the holder thereof resides, such court sitting in equity, to enforce, by decree and attachment, such assignment and transfer, and to order that the interest due on such mortgage, judgment, or recognizance, or other security shall cease from the day of such tender until the assignment shall be executed and delivered. The court shall also make such further decree as to costs as justice and equity may require. No such decree shall be entered unless it shall appear to the court that all parties holding any interest in the lands so encumbered have joined in the application for the assignment of such mortgage, judgment, recognizance, or security.
21 P.S. § 734