Max results now works with shards

All send threads now call the shard complete callback and break if
zrecv.complete is true
Fix integer overflow bug in max_targets
Only flush stdout on send finish for dryruns