Thanks, X-Codes. Normally I use things like Major Image, Solid Fog and what not versus golems. To slow them down, waste their actions and corral them when possible. I like this spell a little more because it's definitive lockdown (while the party preps and maneuvers to land the killing blows) assuming that the golem fails its save.
Against golems, I've also had good luck with the Threesteel spell and a wide variety of condition-granting exotic weapon loadouts (supplemented with castings of Sacred Item, Greater Mighty Wallop, etc.).