perf_counter: Simplify and fix task migration counting