Refs #5377 - better handling multiple pulp tasks spawned from one task

In the case of sync, two tasks are spawned.  yum publish and node publish.  
We should wait for both of these instead of just the first.