9. Any person detained in a Borstal school for failure to furnish security when ordered to do so under section 106, section 118, section 562, or section 126A of the Code of Criminal Procedure, 1898, shall be released on furnishing such security or on the passing of an order under section 124 of the code.