Add bounds checking to sys_getdents, sys_getdents64

* file.c (sys_getdents): Add d_reclen check.
(sys_getdents64): Add d_reclen check.