parisc: factor out sid to protid conversion