[PATCH 4.9 16/49] squashfs: add more sanity checks in id lookup