removed redundant lock in the thread.c/item_lock global