Add isLeader function to NettyRaftService