add spinlock but not implement, the code from tcmalloc