Guard pilot debug api against indefinite locks (#18627)
Guard pilot debug api against indefinite locks (#18627)

* Guard pilot debug api against indefinite locks

* remove func wrapper for debug api

smawson/istio,istio/istio,smawson/istio,smawson/istio,istio/istio,istio/istio,smawson/istio,smawson/istio,istio/istio,smawson/istio,istio/istio