simple thread-safe single linked list