Implement a thread-safe linked list with head(), tail(), push(), and an iterator() that returns an iterator over the list.
Use a singly linked list and ensure concurrent calls do not corrupt links or observe partially completed updates. push(value) inserts at the head, while head() and tail() return None when the list is empty.
For grading, implement thread_safe_linked_list(operations), where each operation is an object such as {"op": "push", "value": 4}, {"op": "head"}, {"op": "tail"}, or {"op": "iterator"}. Return the results of query operations in order; represent an iterator result as a list of values.
def thread_safe_linked_list(operations):