The main idea behind it is to be able to quickly detect broken replica
and switch over to another when used with any sort of mirror type device
built on top of any number of nbd devices.
Also move nbd->pid modifications behind nbd->tx_lock wherever possible
to avoid races between the concurrent nbd-client invocations.