WIP: Add configurable spinlock/mutex to cache frontend