Fixed DefaultCacheAccess to release cache ownership only if the current thread owns the cache, not if some other thread happens to own the cache.