I hate those traps too, moreso for the fact that enemy NPCs just don't factor the loose boulders into their path. They'll run after you and right into the boulders, getting insta-killed by them. They'll just walk into them and be injured. In either case, they act like the boulders simply aren't there.