Improve performance of concurrent use of `StreamIDGenerators`.