I’d lock them in their stalls. But then I am always neurotic about my horses. My mares also know to go into their stalls to avoid rain and hail, but I still put them up. As for Cloudy, well, good thing he always has a mare to tell him what to do.
I don’t leave mine out when there is lightning or thunder. I know many who have had horses struck by lightning.