27-17-304. When defendant may require return of property -- undertaking. At any time before the delivery of the property to the plaintiff, the defendant may, if the defendant does not take exception to the sureties of the plaintiff, require the return of the property upon giving to the sheriff a written undertaking, executed by two or more sufficient sureties or a letter of credit issued by a regulated lender as defined in 31-1-111, in double the value of the property, as stated in the affidavit of the plaintiff, for the delivery of the property to the plaintiff, if the delivery is adjudged, and for the payment to the plaintiff of the sum that may, for any cause, be recovered against the defendant.