An action in which a bond for costs is required by sections 621.1 through 621.3 shall be dismissed, if a bond is not given in such time as the court allows.