In lieu of separate security for each action or proceeding in any court, the plaintiff may cause to be executed and filed in the court a bond in the penal sum of two hundred dollars running to the state of Washington, with surety as in case of a separate bond, and conditioned for the payment of all judgments for costs which may thereafter be rendered against him or her in that court. Any defendant or garnishee who shall thereafter recover a judgment for costs in said court against the principal on such bond shall likewise be entitled to judgment against the sureties. Such bond shall not be sufficient unless the penalty thereof is unimpaired by any outstanding obligation at the time of the commencement of the action.