MFC r354436: MFV r354377: 10554 Implemented zpool sync command
This addition will enable us to sync an open TXG to the main pool on
demand. The functionality is similar to sync(2) but 'zpool sync' will
return when data has hit the main storage instead of potentially just
the ZIL as is the case with the sync(2) cmd.