fixed npe on ownerConnection in clientConnectionManager

fixes #3169
This will loop until `ownerConnection` is not null or thread is interrupted. 
Is this what you want or do you want to wait until some deadline?