[Engine] checkVersionMapRefresh must be called under a read lock

The operation looks at indexWriter.getConfig(), which can throw a `org.apache.lucene.store.AlreadyClosedException` if the engine is already closed.

Relates to #6443, #6786