Fixes: #9398
Adding a check if the Hazelcast node have the leader property set but can't acquire the leadership lock.
If this happens, the node should revoke the leadership since another node is the "true leader"
(cherry picked from commit c850021d60)