Use libgit2 with threads

I compiled libgit2 with thread support and got no crashes so far. I think it could be the time to enable in in our releases.
I mean, why not call `git_threads_shutdown();` in `DllMain` `DLL_PROCESS_DETACH` if `g_cRefThisDll == 0`?