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

...p when client is shutdown, cache is closed and destroyed.

Fixes #4330 
There's only a 3 seconds sleep in test to make a room for putting threads to start. And `testSyncListener_shouldNotHang_*` test method takes nearly 6 seconds.