Improved Support for XAPIAN::DB_RETRY_LOCK in Windows

* Used LockFileEx() in Windows to Lock Files