It’s not safe to be in a thunderstorm, umbrella or not. But an umbrella won’t significantly increase your chances of being struck by lightning as long as there are taller objects nearby.