Return next timeout from sys_check_timeouts