The current refresh for AOT processing phase does not freeze the configuration so merged RootBeanDefinition can become stale and changes made to them are lost.

We should freeze the configuration so that the cache works as expected.