fix: use random suffix for process temp directory instead of PID (#10431)