At any time after the issuance of summons, the clerk or judge, upon motion of the defendant, may, upon a showing of good cause, require the plaintiff to do one of the following things and the failure to comply with such order within 30 days from the date thereof shall constitute grounds for dismissal of such civil action or special proceeding:
The requirements of this section shall not apply to the State of North Carolina or any of its agencies, commissions or institutions, or to counties, drainage districts, cities and towns; provided, further, that the State of North Carolina or any of its agencies, commissions or institutions, and counties, drainage districts, cities and towns may institute civil actions and special proceedings without being required to give a prosecution bond or make deposit in lieu of bond.
N.C. Gen. Stat. § 1-109