To watch a comet form, a spacecraft could tag along for a journey toward the sun