Set up the configuration client properly on non-masters
Set up the configuration client properly on non-masters

If the configuration client is opened in the 'accept_foreign' mode,
meaning it is running on a non-master node temporarily, the option
needs to be propagated to the RPC client as well.

This fixes issue #1115.

Signed-off-by: Petr Pudlak <9d19625f8ee825a2c398462ed335cbcf98f79c32@google.com>
Reviewed-by: Helga Velroyen <2d0126b1ec6f9ec5cbec4a7012aa14faeaef10f5@google.com>

ganeti/ganeti,onponomarev/ganeti,grnet/snf-ganeti,bitemyapp/ganeti,onponomarev/ganeti,yiannist/ganeti,ganeti/ganeti,yiannist/ganeti,mbakke/ganeti,bitemyapp/ganeti,leshchevds/ganeti,leshchevds/ganeti,andir/ganeti,mbakke/ganeti,mbakke/ganeti,grnet/snf-ganeti,yiannist/ganeti,leshchevds/ganeti,ganeti/ganeti,andir/ganeti,andir/ganeti