perf_counter: Fix cpuctx->task_ctx races