Tries to acquire the WriteLock on this directory. this method is only valid if this IndexReader is directory owner.
DirectoryIndexReader Class | Lucene.Net.Index Namespace