Fix file descriptor leak in GetThreadInfoByIndex
lgtm
Hi Chris: Thanks for the patch. It's committed @r954