fix #3612 (win32 log output eats CPU)