nfs4: consolidate object name checks into a single place

Acked-by: Gerd Behrmann
Target: master