add lockfiles and delete them from tree