When social media posts denouncing the police surfaced, they were supposed to harm a socialist’s re-election. But the democratic socialists of Portland, and other cities, are showing their strength.