Don't unlock thread itself in unlock_locks

This removes the need for the unlock / lock pair in the thread logic.