The attack against Sam Altman reflects how badly Silicon Valley needs to address the societal consequences of its products.