One possibility (on Windows) is that a virus checker or an indexer may be leaping in and using the files. Are these 50 files always different, or the same ones each time you run?
Since these are C files: there are some occasions where Visual Studio retains locks if (when?) it crashes. Generally opening the file with VS then closing it again (without crashing) should clear it.