Modify self-hosted to return true if they are done
Repair some basic logic errors in the ParallelDo code.