Add ObjectRegistryCache::isSupported and ClassRegistryCache::isSupported

These methods are called before instantiating classes to make sure APC extension is loaded