Fixing mkstemp close fd