Don't seek on named pipes.

Fixes #10951