Remove close_connections() from tests.
Replace client sync state by a sync_id.