getfl and setfl for 9ns

Check out the comments about fd_getfl() for my overall thoughts on the
matter
9ns supports O_APPEND

Should be able to set it via fcntl/setfl or during open().
Fix O_TRUNC for devmnt

We have different bits for OTRUNC than 9p, so we need to convert.