This makes it easier for the tests (and supervisor) to guarantee to be able to connect to the server socket. Also this patch moves freeing the mirror supervisor into the server thread.
This makes the use of this variable to signal an unexpected SIGTERM while migrating less confusing.
This will be needed if we daemonise flexnbd.