Set EC2 and VPC handles atomically

When I was developing VPC support, I noticed that cluster setup would sometimes fail randomly. I tracked it down to a race in the worker threads, where sometimes the VPC ID would not be set, but the VPC handle would be. Looks like this commit didn't make it into the VPC support merge.