remove redundant locks