make the linked list threadprivate