Dynamic changes in death cues modulate risks and rewards of corpse management in a social insect