tests: explicitly close subprocess files

No match.