bugfix: put back a filedescriptor into the connections_pool only when finished

if used for an async fetch, now that fetch_from_peer_async() is non blocking,
we can't put the fd back immediately, instead we need to wait until the
operation involving the filedescriptor has been completed