That implies some other program has the file open and is locking it. Perhaps your antivirus is scanning it or something?
You might try running the restore via the command-line -- type the following into the command prompt:
Code:
calibredb restore_database -r