The policies of Reagan were in a way aimed at supporting the solidarity in Poland (through e.g. imposing sanctions on the Polish government), and the solidarity movement had the potential of bringing the socialist system in Poland (and potentially in the whole Soviet Union) down, so I would say that solidarity was a bigger threat.