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.
I am thinking maybe this should be WARN and put in the Log class instead?  This could lead to issues with shutdown that might not be as apparent and this would highlight this trace message if it were to occur.