dcap: refactor PnfsSessionHandler to unify permission check and url handling

fixes issue with permission check with prestage over mounted NFS

Acked-by: Gerd Behrmann
Target: master, 2.11, 2.10
Ticket: #8518, #8532
Require-book: no
Require-notes: no