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

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