doins: use mktemp for private files, bug #484332