Try to move a file to a known directory if it is locked before retrying the file action