@Override
    public int getLockCount() {
        return JooqUtil.contextResult(metaDbConnProvider, context -> context
                        .selectCount()
                        .from(meta)
                        .where(meta.STATUS.eq(MetaStatusId.LOCKED))
                        .fetchOptional()
                        .map(Record1::value1))
                .orElse(0);
    }
@return True if any term in any rule expression uses at least one of {@code fields}.
stroom-meta/stroom-meta-impl-db/src/main/java/stroom/meta/impl/db/MetaDaoImpl.java