openssd: don't unload unless all bios finished

In the case we try to unload an active pool, we might run
into a race condition, where there are outstanding bios. We make
sure that all have been flushed before deallocation.
openssd: read, write and delayed IO accounting

Let the user get information about the number of accessed and delays
within an append point.