libipt, ptunit: remove temporary files after closing
libipt, ptunit: remove temporary files after closing

In ptunit-section, we create temporary files and remove them again by calling
remove() on the filename while the file is still open.  This may cause remove()
to fail on some systems.  Close the file first.

Change-Id: Ie1ea517accbb95e2cbe76345bbdddb55d5865d11
Signed-off-by: Markus Metzger <5f675b2b36595f90898e014b548ff7d9bbff2ab7@intel.com>

01org/processor-trace,01org/processor-trace,01org/processor-trace