Good Evening.

You could use an ErrorHandler for this. When the script Errors with "File locked for Saving." have it go to ErrHandler.

In your ErrHandler region, set it up to wait X amount of seconds and then Resume. It will resume at the last line that errored out.

Hope this idea helps.
Scott