Don't try to open files in the distribution for writing

When imported into OpenBSD, this will be attempted to run from a
readonly source tree.  This test fails in that situation because we are
not allowed to open t/truncate_me for writing.

Instead, we can just use the tempfile.