TorStreamIsolationCredentialsGenerator::Generate() reads m_counter to format the credentials, then increments it in a separate operation. The increment is atomic but the read and the increment together are not, so two threads calling Generate() at the same time (e.g. the automatic and added-node connection threads) can get the same credentials, and their connections may then share a Tor circuit.
Use the value returned by fetch_add(), so that each call gets a distinct counter value.