Fix last traces of old threading API.
7 files changed