Divergent paths in the evolutionary history of maternally transmitted clam symbionts