Fix race condition when attaching circuits.

It was possible that we got the source port over the Queue before the actual
stream event.  To fix that, we can use partial function evaluation of the
stream attaching function.