(b) In court's discretion. Upon motion by the defendant with notice, or upon its own initiative, the court may order the plaintiff to give security for costs in an action by or against an assignee or trustee for the benefit of creditors, a trustee, a receiver or debtor in possession in bankruptcy, an official trustee or committee of a person imprisoned in this state, an executor or administrator, the committee of a person judicially declared to be incompetent, the conservator of a conservatee, a guardian ad litem, or a receiver.