Merge pull request #9619 from leoetlino/scoped-fd IOS/FS: Add a scoped FD class to make it harder to leak FDs