zfs: fix up EINVAL from getdirentries on .zfs
PR: 270909 (cherry picked from commit 9c4e270822a3592bf122f9a8e4e815b4602329f1)