AWS: Fix problems with >2 security groups
AWS: Fix problems with >2 security groups

The previous logic was incorrect; if we saw two untagged security groups
before seeing the first tagged security, we would incorrectly return an
error.

Fix #23339

kubernetes/cloud-provider-aws,kubernetes/cloud-provider-aws,kubernetes/cloud-provider-aws