Use threads to generate initial queue quickly
Bugfix: os.stat could raise OSError and crash the program just because the file was removed