Fix idle socket cleanup code path.

This reverses the order that sockets removed from the idle list and deleted.
It also detects and handles recursive calls to CleanupIdleSockets.

BUG=49387
TEST=none

Review URL: http://codereview.chromium.org/2856049

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53374 0039d316-1c4b-4281-b951-d872f2087c98
2 files changed