[PATCH v2 2/7] libnvdimm/bus: Prevent duplicate device_unregister() calls