Thermally activated transitions in magnetic systems and long time scale spin dynamics