Skip permissions check on named pipes

Fixes #7680