truncate file for each (possible) thread

test with e.g. mvn verify -T3

Change-Id: If20b6cac32c77e408a5d6ccfc7ff7a441d30e514