cq_heartbeat(): only log delay adjustements when running with cq_debug > 0.

Also when the delay is larger than 10 periods, run the whole 10 periods and not
just one to avoid delaying too much some of the callbacks.