If synthetics really were a threat to all life, the obvious solution would be to simply have the Reapers around as guardians - they are more than advanced enough to wipe out the Geth or similar AIs should they ever threaten organic life in the galaxy. - The list goes on and on..