Fixed git2.h not including threads.h anymore

Regression from 799e22ea0c3f20f1900011573a10053dc3ea9138