Skip permissions check on named pipes

Fixes #7680

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>