Handle far future timeouts for logrotation

Limit the delay to 2147483647 and then check in rotate() whether we should actually rotate the files or just issue another timeout.