If, in the opinion of the court, the article on which the lien is claimed is not of sufficient value to pay the plaintiff's claim with the probable costs of suit, the court may order the defendant to give bond to the plaintiff, with sufficient sureties approved by the court, to pay such costs as are awarded against the defendant, so far as they are not paid out of the proceeds of the articles on which the lien is claimed.
10 M.R.S. § 4007