Add support for chmod, fchmod, and fchmodat syscalls.  Also adds support for file mode.