pub fn run_with_tempdir_sync(prefix: &str, f: impl FnOnce(PathBuf))
Runs the given closure with a temporary directory.