Always set osf before unlocking in writeCASCacheEntry