New function uses std::filesystem::path and generates result faster than ddio_GetTempFileName() (benchmarked on Linux).