kernel32/tests: Fix a thread handle leak.