whats the point in "locking" a thread?