If the master, owner, agent or consignee, before final judgment in any action commenced in pursuance of ORS 783.030 and 783.040, enters into an undertaking in favor of the plaintiff, with sufficient security, to be approved by the judge or clerk of the court in which the action is pending, conditioned to satisfy the amount which is adjudged due and owing to the plaintiff on determination of the action, together with all costs accruing, such boat or vessel, with its tackle, apparel and furniture, shall be discharged from further detention by the sheriff.
ORS 783.090