Apart from not riding when there's lightning about, there isn't really a lot you can do. If you're already riding when things start getting electrical, then the only piece of advice I can remember is don't shelter under a tree, as a lightning strike on a tree will apparently boil the sap inside the tree and cause a sort of steam explosion.