Hmmm.. Not sure if locked in-use file is your problem or not, but maybe try looking at this KB for a Registry method of replacing an inuse file.

M$ has a .EXE for it as well.

How to Replace In-Use Files at Windows Restart