TST: Always try to close file descriptors of tempfiles

TST: Close file descriptors in io/tests/pytables