The defendant, at any time before final judgment, may replevy the personal property seized and taken into possession by the officer serving an attachment, by giving to such officer a bond, with sufficient sureties, to be approved by him, payable to the plaintiff, in double the value of such property, conditioned to have said property forthcoming to answer and abide the judgment of the court in said suit, or, in default thereof, to pay and satisfy the judgment to the extent of the value of said property; and on the execution of such bond, the officer shall restore to the defendant the property so replevied, and shall return the bond so taken with the writ of attachment and all proceedings thereon. Such replevin shall not affect the lien of the attachment, or the proceedings thereon, as to any rights, credits, or choses in action of the defendant.