Config add lock and file modification checks.