This PR cleans up the thread auto-capturing added in #28271. - Removed usage of `unsafe` - Fixed feature flag check - We were incorrectly not respecting the feature flag in release builds - Made sure the telemetry event was being run on the background executor Release Notes: - N/A