TST: Always try to close file descriptors of tempfiles

TST: Close file descriptors in io/tests/pytables
Merge pull request #5626 from jtratner/always-close-tempfiles

TST: Always try to close file descriptors of tempfiles