ns_mktemp uses the deprecated old POSIX call mktemp(), which should not be used anymore for security reasons (race between the name creation and opening the file). This change removes several usages of "ns_mktemp" from OpenACS and replaces it with calls to the safe Tcl call "file tempfile ..." (introduced by Tcl 8.6).