[autotests] Keep registry on the stack
Parenting both registry and the client connection to the test leads to a confusing teardown order. Especially as m_connection is explicitly deleted in cleanup()
Scoping registry to where it's actually used solves that