nfs4: validate readdir cookie

fixes test cases from pynfs testsuite

Acked-by: Gerd Behrmann
Target: master