Spurious wakeup when waiting for a response is now handled properly.
Backport of https://github.com/hazelcast/hazelcast/pull/3207
Merge pull request #3210 from jerrinot/fix/spurious-wakeup/maintanance-3.x

Backport: Spurious wakeup when waiting for a response is now handled properly.