git: fix build with with no threads