CA-185997: Tolerate connection loss when setting ssl_legacy
CA-185997: Tolerate connection loss when setting ssl_legacy

Setting ssl_legacy now resets the master connection (see commit 9a5edf8)
so the master now expects the slaves to disconnect and polls until the
database reports that the slave has ssl_legacy set to the correct value.

Signed-off-by: John Else <37b74501daa612e48fea94f9846ed4ddeb6a8f07@citrix.com>

simonjbeaumont/xen-api,rafalmiel/xen-api,Frezzle/xen-api,Frezzle/xen-api,thomassa/xen-api,simonjbeaumont/xen-api,euanh/xen-api,euanh/xen-api,jjd27/xen-api,srowe/xen-api,Frezzle/xen-api,srowe/xen-api,Frezzle/xen-api,thomassa/xen-api,euanh/xen-api,thomassa/xen-api,rafalmiel/xen-api,rafalmiel/xen-api,jjd27/xen-api,simonjbeaumont/xen-api,simonjbeaumont/xen-api,simonjbeaumont/xen-api,thomassa/xen-api,simonjbeaumont/xen-api,Frezzle/xen-api,jjd27/xen-api,euanh/xen-api,srowe/xen-api,thomassa/xen-api,srowe/xen-api,rafalmiel/xen-api,euanh/xen-api,jjd27/xen-api,jjd27/xen-api,jjd27/xen-api,rafalmiel/xen-api,srowe/xen-api,euanh/xen-api,thomassa/xen-api,rafalmiel/xen-api