How to outrun your parasites (or mutualists): symbiont transmission mode is key