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

...p when client is shutdown, cache is closed and destroyed.

Fixes #4330 

Backport of #4333