Fix SimpletargetSet when a target is added and we were already at the
end.
Add AsyncEngine::ensure_available_sockets to make sure a socket will be
available