ISPN-4561 CacheManager.stop with indexing to Infinispan fails

https://issues.jboss.org/browse/ISPN-4561

As discussed, introduced a graph to store cache dependencies and enforce it at stop time, plus an API to interact with that. Query will register cache dependencies accordingly. Backporting should be straighforward.
> Redefining a cache config doesn't affect dependency. 

So what if I change a Cache configuration A to use indexing, when it didn't use indexing before?
Or if A used to store in B, but now we want to do vice-versa ?