in truncate.t, close $tmpfile before opening again

Signed-off-by: Niels Thykier <nth@netcompany.com>
Merge pull request #54 from nthykier/rt-96609

in truncate.t, close $tmpfile before opening again