Threads waiting JCache sync listener completion events should be waken u...

...p when client is shutdown, cache is closed and destroyed.

Fixes #4330 
It's easy for me to make them nightly. Let's just decide on doing latch.await() with timeout or not. I'm ok with timeout, I, myself, already suggested doing that way.