Fixes an issue with closing index readers for transaction-less read-only

statement contexts. There was an old IndexReaderFactory implementation
used that assumed a global single instance read-only statement context
still left.