readdir/readdir21.c: Add EBADF and EFAULT errno testes

Add EBADF and EFAULT errno testes for readdir(2).

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>