In Copy we have a nice "ok so the file was locked, but by what?" implementation for Windows. Other tasks, like Csc, could use it too. It was recently (#9488) abstracted out for internal reuse, but we could make it a public thing in Utilities.
(Pointed out by @tmat offline--thanks!)