fix(telemetry): remove data race in telemetry hook
Description
Fixes the data race reported in !2098 (merged).
Related Issues
N/A
How has this been tested?
Manually using go run -race ./cmd/glab version and through unit tests as well.
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap