Call git_threads_shutdown() after last handle get disposed

Implementation for https://github.com/libgit2/libgit2sharp/pull/249#issuecomment-14275059