Remove useless lock