Refactor some jonx for lazy syscalls
Add ioctl/fcntl helpers to local file descriptors