Init the threading system.
If libgit2 has been built with GIT_THREADS on, this function must be called once before any other library functions.
If libgit2 has been built without GIT_THREADS support, this function is a no-op.
0 or an error code