In all cases of bail for the appearance of any person or persons charged with any criminal offense, the surety or sureties of such person or persons may, at any time before judgment is rendered against him or them, seize and surrender such person or persons charged as aforesaid to the sheriff of the county wherein the recognizance shall be taken.