nvlist: improve error checking and reporting
nvlist: improve error checking and reporting

Raise an exception on an unexpected failure in a C call rather than
asserting that the call is always successful.

ClusterHQ/pyzfs