Fix subtle issues related to fork/join of tasks.

When a fork/join contains a task, the task completion may become
confused with the completion of another thread if any of the
threads are embedded in the main thread. So always create threads
for all the fork paths, and joins to match.
Merge branch 'master' of git://github.com/steveicarus/iverilog