[NamedPipeWriter] set default permission to 0644 (TODO: make mode configurable)