[PATCH v3] libnvdimm: introduce nvdimm_flush() and nvdimm_has_flush()