[tor-commits] [tor/master] When using open() to make sure we created a dir, close the fd afterwards