Avoid race at replication activation

...oolean).

Hopefully this will solve the intermittent failing tests due to
ClientSessionFactories left open.