Chmod and Fchmod are no longer direct syscalls

They are implemented in package os as specific instances of executing a
wstat. Truncate as well.