Remove redundant lock barrier.