Pipe open/release should depend on mode not flags