Remove unneeded lock.