remove useless lock