mm: memcg/slab: synchronize access to kmem_cache dying flag using a spinlock