dataflow-20211209: Do not cleanup cashed CCDB objects of some special types (#7843)

shahor02
2021-12-09T00:12:24Z

The BasicCCDBManager cache is based on shared_ptr, which assumes that the object is never
deleted via its raw pointer. We cannot control this for some global ROOT pointers, e.g.
gGeoManager, which is deleted on exit internally by ROOT (thus creating a race condition with
destruction of the same pointer via shared_ptr.
Such objects will be cached to raw pointers in the BasicCCDBManager but will be never deleted by it.

Co-authored-by: shahoian ruben.shahoyan@cern.ch