Fix "infinite" delay when no timeouts are scheduled

Was passing an interval as a time.

Fixes https://github.com/mirage/mirage/issues/298