Rollback to DHCPDISCOVER w/o Rapid Commit if handshake doesn't succeeds.

To prevent the potential interoperability issue with Rapid Commit
option, limit the first 3 DHCPDISCOVER packets taking this option.
If DhcpClient doesn't receive any valid DHCPACK within the first
3 packet (re)transmission, then just rollback to DHCPDISCOVER
without Rapid Commit option in the subsequent transmission.

Bug: 198226242
Test: atest NetworkStackIntegrationTests
Change-Id: Id926c94aa96a5a36d91f82371e472eac7361114e
3 files changed