core: using synchronized set instead of CopyOnWrite in the datasource.
CopyOnWrite was the main bottleneck when creating many connections. Went down from 65536 connections in 24 seconds to 65536 connections in 0.78 seconds. The main problem was that the growth was exponential and now is closer to linear.
core: passive scan fix for extra events