Take umask into account in filebuf_commit
move mode_t to filebuf_open instead of _commit
Merge pull request #1940 from ethomson/filebuf_umask

Take umask into account in filebuf_commit