Avoid race condition when setting default gateway.

Without this change, outgoing packets can leak out the old default gateway between the time `pipework --wait` completes and the time pipework can install the new default gateway.