Properly permission check cache_inode_readdir

Signed-off-by: Frank S. Filz <ffilz@us.ibm.com>