Support GIT_THREADS on Solaris