[ndctl PATCH v3 1/3] ndctl, lib: Add dirty-shutdown-count retrieval helper