Finally fix naughty #8

Now the code can repeatedly check out large repositories (like openssl)
with ulimit open file limit as low as 10. Should fix Windows issues.