Merge pull request #5720 from libgit2/ethomson/tlsdata Thread-local storage: a generic internal library (with no allocations)