[ndctl PATCH 2/3] libdaxctl: add an API to check if a device is active