ksym_tracer: Fix race when incrementing count