libnvdimm: add mechanism to publish badblocks at the region level