Remove useless lock.