It's more of a death penalty for engaging in homosexual acts. As long as he stays out of Saudi embassies he should be fine, for whatever level of "actively courting investment from the people who would supposedly kill him that kill critics and imprison women for driving" is fine.
Where is all the concern involving the fact that Peter Thiel was investing in a regime where there is a death penalty for being gay in the first place, why does that get a pass and all the concern falls on his supposed personal safety.
This argument isn't about the fact that Saudi Arabia is ridiculously oppressive to gay people, it is about scoring points to make Peter Thiel look better.