Section 130. An attachment of property shall be dissolved by the appointment by any court of competent jurisdiction in the commonwealth of a receiver to take possession of such property if the complaint seeking the appointment of such receiver is filed in said court within four months after such attachment was made, unless the court at any time, in its discretion, continues such attachment. In such case the court may authorize the receiver to prosecute or defend the action upon which the attachment was made.