This commit updates the kstat for pool status and simplifies by
creating an nvlist that contains the pool status. This nvlist is then
printed to provided buffer in JSON format. The redundant parts of code
have also been removed.
Signed-off-by: Umer Saleem <usaleem@ixsystems.com>