generalized fix on dobule connection release.

Conflicts:
	client/src/main/java/com/orientechnologies/orient/client/remote/ORemoteConnectionManager.java