TST: Always try to close file descriptors of tempfiles
We weren't closing the file descriptors from `mkstemp`, which caused fun
segmentation faults for me. This should fix the issue.

@changhiskhan can we bump the 0.13rc version post-this-commit? Otherwise test suite is going to segfault on certain systems (possibly many versions of OS X?)
