Threshold resummation for polarized high-p(T) hadron production at COMPASS