ISPN-3942 HotRod client keep trying recover a connection to a cluster member after shutdown

Also backported:

ISPN-3845 CACHE_MODE_LOCAL flag only works in primary owner for non-tx caches