Added spinlock classes, and switched the lru cache to use spinlocks.