Whenever the official bond of any state officer shall become insufficient from any cause whatever, the like proceedings may be had before the superior court of the county in which said state officer holds his or her office with reference thereto: PROVIDED, That such proceedings may be commenced by a written motion supported by affidavit.