Skip permissions check on named pipes

Fixes #7680

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Merge pull request #7683 from LK4D4/fix_build_hang_pipe_#7680

Skip permissions check on named pipes