The counters/stats logging does not use an OutputCtx, so add a new
API for registering a flag to updated when the rotation signal
is received.

As all the other rotation callbacks just set a flag anyways,
this could be used instead of the callback method.
Signal based file rotation for the stats log.