Duplicate the fd instead of reference

The mFd member was assigned with the original fd. When the auto
Keepalive was closed as system tried to create another auto
Keepalive, the real fd would be closed unexpected. The fd
assignment should come from a duplicate as what the code does
for auto keepalvie.

Bug: 290094178
Test: atest FrameworksNetTests
Test: atest android.net.cts.ConnectivityManagerTest
Change-Id: Ibc153c3f37f9e755446179d3b67178335bc2633d
1 file changed