Fix PID-based random name generation on Windows