Add lock semantics around dev_mode.IsEnabled to as a fix for [this](https://github.com/fleetdm/fleet/actions/runs/23728512273) data race
Add lock semantics around dev_mode.IsEnabled to as a fix for [this](https://github.com/fleetdm/fleet/actions/runs/23728512273) data race