tests: improve portability

mktemp with only five X failed on OpenBSD.