[PATCH v2 08/17] libnvdimm: introduce nvdimm_flush() and nvdimm_has_flush()