perf_counter: unify and fix delayed counter wakeup