more minor C semantics fixes

**please review**
All I did was move the join on the thread to after the parsing of configs and rules takes place. This increases the parallelism of kompile by allowing both parsing of rules and the generation of the ground table to take place simultaneously.