Handle locked files.