Fix several issues and inconsistencies in UNMAP capabilities reporting.

This makes Windows 2012 to start using UNMAP on our disks.

MFC after:	2 weeks
Sponsored by:	iXsystems, Inc.

(cherry picked from commit 8e18ceaa1565a991eb121a42f2ce76ee12bc7808)