
### Environment

* Dubbo version: 3.0.8
* Java version: 1.8

### Steps to reproduce this issue

复现的代码：
```java
public static GenericService getService(String serviceName, String version){
  ReferenceConfig<GeniricService> refConf = new ReferenceConfig();
  refConf.setProtocol("zookeeper");
  refConf.setAddress(registryAddress);
  refConf.setRegistry(registryConfig);
  refConf.setGeneric("true");
  refConf.setInterface(serviceName);
  refConf.setVersion(version);
  refConf.setTimeout(5000);
  return DubboBootstrap.getInstance().getCache().get(refConf);
}
```


### Expected Behavior

从缓存中获取GenericService

### Actual Behavior

没有从缓存中获取，而是直接调用了ReferenceConfig.get()，且执行了ReferenceConfig.init()另外创建了新的GenericService， 在zookeeper上也在相应的service节点下添加了consumer节点。



### Reason
DubboBootstrap.getInstance().getCache()返回的是 CompositeReferenceCache类型的对象，CompositeReferenceCache.get(ReferenceConfigBase)方法没有从缓存中取已经创建好的代理类，而是直接调用了ReferenceConfigBase.get()方法，由于ReferenceConfigBase是一个新对象，ReferenceConfigBase.ref==null，最终执行ReferenceConfigBase.init()方法创建代理类并新增consumer节点。
CompositeReferenceCache.get(ReferenceConfigBase)代码如下：
<img width="765" alt="image" src="https://user-images.githubusercontent.com/4346834/168599344-1e70b99d-3c90-485f-b0b4-883ada28b64d.png">


该问题在https://github.com/apache/dubbo/issues/10012 也反映过，但仅修复了SimpleReferenceCache类中的bug。

for (ModuleModel moduleModel : applicationModel.getModuleModels()) {
            T proxy = moduleModel.getDeployer().getReferenceCache().get(key, type);
            if (proxy != null) {
                return proxy;
            }
        }
        return null;
    }
    @Override
    public <T> T get(String key) {
        for (ModuleModel moduleModel : applicationModel.getModuleModels()) {
            T proxy = moduleModel.getDeployer().getReferenceCache().get(key);
            if (proxy != null) {
                return proxy;
            }
        }
        return null;
    }
    @Override
    public <T> List<T> getAll(Class<T> type) {
        List<T> proxies = new ArrayList<>();
        for (ModuleModel moduleModel : applicationModel.getModuleModels()) {
            proxies.addAll(moduleModel.getDeployer().getReferenceCache().getAll(type));
        }
        return proxies;
    }
    @Override
    public <T> T get(Class<T> type) {
        for (ModuleModel moduleModel : applicationModel.getModuleModels()) {
            T proxy = moduleModel.getDeployer().getReferenceCache().get(type);