Wire up extension registry gating code to use the feature flag
Created by: philipp-spiess
Closes #40556 (closed)
Wire up the extension gating logic to use the feature flag.
Test plan
Tested locally by configuring the feature flags and calling out to extension registry APIs: