MFC r266491:
Remove redundand loop.
MFC r266319:
Make GEOM DISK to account also BIO_FLUSH operations.
MFC r266320:
Add -o option to gstat to display "other" operatins (e.g. BIO_FLUSH).
MFC r265821:
Comment out some pointless device open/close around reading device IDs.

FreeBSD ZFS port unlike OpenSolaris does not use device IDs, and does not
implement respective devid_*() fuctions.  It is pointless to open devices
just to close them back immediately.
MFC r265689:
Import adapted OpenSolaris' thread pool API implementation.

The thread pool is used by libzfs to implement parallel disk scanning.
Without this change our dummy wrapper made `zpool import ZZZ` command to
scan all disks sequentially from the single thread when searching for pools.
This change makes it use two threads per CPU, same as in OpenSolaris.

On system with 200 HDDs this change reduces ZFS pool import time from 35
to 22 seconds.
MFH (r266291): look for root certs in /usr/local first
MFC r266411:
Fix LD_LIBMAP.
Merge remote-tracking branch 'freebsd/stable/10' into hardened/10/aslr