A more simple solution would be giving trade units actual line of sight. Limited line of sight, of course, just one tile around them, but it would both make sense and prevent encampments from spawning directly on top of trade units (of course, it wouldn't prevent camps spawning along lines the trade unit will go along, but that's beside the point).