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.
What if a user gets hold of the LuceneIndexesData cache and call stop on it? It will break the index, should we not enforce dependency on cache.stop( )?