Revise locking retry semantics in Win32 VFS to abort early if the file handle is reported as invalid.
Add tests for the invalid file handle detection logic in the winLock() function.
Add extra checking of the database extended error code.
Revise locking retry semantics in Win32 VFS to abort early if the file handle is reported as invalid.