In an action of replevin brought against any person not an inhabitant of this state, the court before which the action is pending may make such order as to security to be given by the defendant for costs that may be recovered by the plaintiff as it deems just.
(1949 Rev., S. 8267.)