Bonding all metals would help but..
..unless done at factory as part of building process , it would be difficult to do this afterwards on new production sailboats .On some boats ,winches, metal deck hardware and statchions, for example, have no visual metal backplates under the deck(but screw onto aluminium plate moulded into deck) to which the bonding strip can be strongly atached.Same bonding strips , connecting the mast, stays chainplates, and other metal components to keel, should be routed in stright no-cornered pathsa difficult thing to acheave on finished boat with all floors and furniture in place ,without canibalizing the boat...It a pity , that due to marketing and economic reasons , most builders don't do that anymore, unlike 20-25 years ago when even a 81' 28 footer Beneteau ( like my former boat) had this system as standard.Just a week ago , a friend sailing a chartered new 40 footer Jeaneau along beautifull south Turkish coast ( on her maiden sail) in normal weather condition for the season , was struck by lightening , which made a fist size hole in mast and made a 'total loss' of ALL electric and electronic equipment,incl all wiring and conduits in the boat..None was injured and being just before entering a marina , he succesfully docked in.He was advised that the whole rigging should be checked , and maybe replaced..He was given of course another boat.Were it a private boat , damage would be al least 20-25 thousands .., and they were lucky that the hull was not holed at chainplates area ,and they were in relatively calm waters near the coast..I never read in magazines or web sites any comment from manufacturers why they avoid this basic safety protection feature , at least on 30+ footers category B (offshore) boats ,which are expected to do longer trips away from coast.