perf_counter: Dynamically allocate tasks' perf_counter_context struct