[tests] use const_mk{s,d}temp instead of tmpfile ones, default TMPDIR to /var/tmp