Fixed to use spin lock in cache.