Removing locks on files in Windows 7
LockHunter - It is a free tool to delete files blocked by something you do not know.
LockHunter is freeware.
You can use SysInternals (owned by Microsoft) free tool ProcessExplorer to unlock a file handle.
Just use the Find menu to search for the file that is locked. This will show which process has the lock on the file. If you can't get the process to release the lock by shutting it down safely, you can forcefully release the lock by double clicking the search result to show the file in the main Process Explorer window. Then right-click the file and select Close Handle