only remove locked file after release for lock file created with factory