adb: use asocket's close function when closing.

close_all_sockets was assuming that all registered local sockets used
local_socket_close as their close function. However, this is not true
for JDWP sockets.

Bug: http://b/28347842
Change-Id: I40a1174845cd33f15f30ce70828a7081cd5a087e
(cherry picked from commit 80814e19f954c1f8cb1c318d35352639ba2d508c)
(cherry picked from commit a94c38e67155990c9341ea20f3cc9d8c21b57ed9)
1 file changed