When any person shall be prohibited by law, or restrained or enjoined by the order, decree, or process of any court in this state from commencing or prosecuting any action or remedy, the time during which such person shall be so prohibited, enjoined or restrained, shall not be computed as any part of the period of time limited by this chapter for the commencement of such action.