private Runnable createWaitLoggingAction(final String lockName) {
        final Instant startTime = Instant.now();
        LOGGER.trace("About to acquire {}", lockName);
        return () -> {
            if (LOGGER.isDebugEnabled()) {
                LOGGER.trace("{} acquired", lockName);
                if (startTime != null) {
                    Duration waitDuration = Duration.between(startTime, Instant.now());
                    if (waitDuration.getSeconds() >= 1) {
                        LOGGER.debug("Waited {} to acquire {}", waitDuration, lockName);
                    }
                }
            }
        };
    }
Deletes {@link LmdbEnv} from the filesystem if it is already closed.
stroom-lmdb/src/main/java/stroom/lmdb/LmdbEnv.java