You played a sleight-of-hand, by conflating mass shootings with gun homicides in general. I'm talking about both, with a bigger emphasis on homicides overall.
California is #44 for gun homicide rates, and is significantly lower both on this metric, and on gun ownership than than its immediate neighbours.
Speaking of firearm homicide rates, #1, #2, and #3 are Mississippi, Wyoming, and Louisiana, [1] all of which have gun ownership rates that are double-to-triple that of Cali.
'Immediate neighbour' isn't a relevant term to this. There are no border checkpoints anywhere between the lower 48. Practically speaking, access to firearms is set by the availability of firearms in the most permissible state. Illegal guns don't appear into existence on their own, they start life as legally purchased guns, that are then sold to criminals, or are stolen by them. This is especially prevalent on the East Coast, where 3/4 guns used in New Jersey and New York crimes come from out of state.
[1] https://www.cdc.gov/nchs/pressroom/sosmap/firearm_mortality/...