zvol open/release error handling

The following two patches were proposed in issue #1343 but never reviewed or merged.  I'm opening a pull request with them to ensure they're not misplaced again.  They're both modest changes but they need to be looked at carefully again.