Merge pull request #4010 from libgit2/ethomson/clar_threads Introduce some clar helpers for child threads