Fix possible bug as CGameTeams is not thread-safe

`Teams->Count(Team)` could be `>0` at first check but assigning later it could be `<=0`