remove lock in pipe