more minor C semantics fixes

**please review**
Can you explain what was the issue? I don't understand why you had to move the second thread.