fix segfault
The creation of the current streams does not always finish when all the ports have been augmented. This causes a race condition that can result in a segfault when linking endpoints, because the ports of the streams are not ready. This MR fixes that by finishing the streams creation only when the ports are ready.