Avoid race condition when setting default gateway.
Merge pull request #31 from johngmyers/default-route-race

Avoid race condition when setting default gateway.