Added AtomicCachePtr class

The AtomicCachePtr is designed own a pointer to a cache and set and access that cache in a thread safe manner.