Fixes sys_open() and sys_close()

Open wasn't checking the retval from alloc_file() (which is a ghetto function
btw).  Close was using file after it had been freed, and was also closing the
VFS fd, instead of the 9ns FD.

The coexisting of ns and vfs in these functions is hopefully temporary.