block_perf: add a watchdog thread

Detect deadlocks and print an error. Periodically dump the state
of each event channel.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>