Fixed version check in zfs ioctl handler.  It was incorrectly comparing the
ioctl command value in an error code path.  While not normaly executed, this path
could be run in case of multiple threads trying an ioctl simultaneously.

This caused the crashes reported as issues 126, 129 and 132.