Thread safe list and lock-free list