route: Reset state if JOIN fails by any reason
library: Use copy addresses at state_move_to_dht

Otherwise there still possible several connections between two server
nodes in case of dual stack (and connections will be through different
networks). Also it leads to races with undefined behavior.
Merge pull request #528 from toshic/master

route: fixed deadlock in routes.cpp
Merge pull request #522 from euroelessar/master

Fix different error which may lead to route-list malfunction
v2.26.3.24
net: fixed fd leak

In some cases (i.e. AUTH command fail) networks sockets
was shutdowned but not closed.
In such cases lsof shows a lot of fds with unknown protocol.
Number of leacked fds grows rapidly with every network split.
net: setup state epoll_fd before sending AUTH

Auth commands was sent before state epoll_fd setup.
It causes a lot of timed out AUTH transasction.