Fix race in destroying of service manager.

Service connection retrives shared_ptr to own service manager in destructor, that sometimes may lead to removing of service manager from its own thread. Now service connection uses service manager via reference.
WARNING: Now user must remove all connections before removing of corresponding service manager.
WARNING: This commit breaks binary compatibility.