Fix a "race condition" resulting in bugs when opening a connection under heavy load

See https://github.com/deployd/deployd/issues/453
I think the array needs to be cloned, otherwise the event gets added to the same array reference as for Collection, thus adding the event to Collection as well.