syscall_emul: [patch 10/22] refactor fdentry and add fdarray class