[PATCH 2/4] ndctl: have do_cmd() in libndctl return errno instead of -1