fixed npe on ownerConnection in clientConnectionManager

fixes #3169
When `ownerConnection` is not null there's no need to enter sync block. 

```java
if (ownerConnection == null) {
    synchronized (ownerConnectionLock) {
    ....
    }
}
```