Semi-closed primaries (which CA is, because NPP voters could still vote in the Dem primary) are not arcane rules designed to disenfranchise voters. They are used to prevent party raiding by GOP voters who want to face an easier opponent in the fall (in this case, Sanders).