Uses atomic compare and swap to avoid race condition

Use etcd's atomic comapre and swap functionality to correctly determine
if 'we' are the first in the bootstrap.  Previously, two nodes could
have queried for machines, seen none, and both considered themselves as
the first node in the bootstrap.