. . . "This is one of the very contingencies provided for by the second clause of the section, which apparently vests in the court a certain discretion with regard to the preservation of the right acquired under the attachment or other lien." .