Sleep whenever we have visited 10 files. This is to avoid one
translation units ending up visiting everything which hurts performance.