fixed npe on ownerConnection in clientConnectionManager

fixes #3169
It seems that I just copied these lines when refactoring. But I was the one implementing that part in the first place, and it does not much make sense to me right now . I will make it wait for configurable wait time and throw exception if owner connection is still null.