Squashfs: add corruption check for type in squashfs_readdir()