It sure seems like stone golems don't attack slime pits. Several times, I've watched marauding armies of stone golems go into an area full of pits, gradually destroying the fire pits and the graveyards one by one, until nothing is left but a bunch of slime pits. At that point, the stone golems just go idle or go somewhere else.
To be clear, I am not saying "stone golems do this" to imply "other golems do not do this". I don't know whether other golems do it or not.
Oh, wait, and now that I think about it a little more, really I only know that ice stone golems do it.