I don't think I have much to add except to ask what operations are
the programs attempting to do when the message is encountered.
If you are doing a *REPLACE to the target file then that, I think,
would lock the file.
is the error that the target (To) file is locked? Or the source
(From) file is locked?