master: Prevent shadow master from disconnecting on reload

This commit fixes the issue with shadow master which disconnected from
the master server each time it was reloading configuration.

Change-Id: Iccfc5117c145adc2b3a9f7cca183085fa3b407c8