The missing factor: why social democracy can lead to restrictive immigration policy