Fix an issue causing lock contention in ObtainProxyType