Don't seek on named pipes.

Fixes #10951
Merge pull request #11051 from cachedout/10951

Don't seek on named pipes.