dhcpclient - store xid when encoding request

Fixes the incorrect debug message "Encoding DHCP-Discover of id
ffffffff".
And this will allow to correlate xid from response (should be done by
the client, but not yet).
Merge pull request #730 from nchaigne/v3.0.x

dhcpclient - store xid when encoding request