fix wrong prototype
fix termination of qsink

qsink couldn't send flow end if it hadn't received flow definition. This
asks for an uref manager in that case to make sure the qsrc sends SOURCE_END.