Housing crises across advanced economies are reshaping political loyalties, but which parties reap the rewards is hard to predict.