FIX #105: fix race condition on iterable consumption with pre_dispatch

This should fix #105 however I don't have access right now to a box with enough physical cores to reproduce the original problem so please do not merge without first checking that the #105 is actually fixed on a box that can reproduce the original race condition on master.