pothos-library: just some cleanup to the threading stuff