private void checkState() {
            Objects.requireNonNull(writeLock, "BatchingWriteTxn is already closed");
        }
Closes the txn and releases the single write lock
stroom-lmdb/src/main/java/stroom/lmdb/LmdbEnv.java