Remove unnecessary lock.