Section 12. A person committed for not finding sureties, or for refusing to recognize as required, may be discharged upon giving such security.