ZOOKEEPER-4000: use the computeIfAbsent to simplify the Leader#processSync method
```
public synchronized void processSync(LearnerSyncRequest r) {
if (outstandingProposals.isEmpty()) {
sendSync(r);
} else {
List<LearnerSyncRequest> l = pendingSyncs.get(lastProposed);
if (l == null) {
l = new ArrayList<LearnerSyncRequest>();
}
l.add(r);
pendingSyncs.put(lastProposed, l);
}
}
```
we can use the computeIfAbsent to make the code more clean and elegant
Author: Matteo Minardi <matteo.minardi@diennea.com>
Reviewers: maoling <maoling199210191@sina.com>, Christopher Tubbs <ctubbsii@apache.org>, Andor Molnar <anmolnar@apache.org>, Damien Diederen <ddiederen@apache.org>
Closes #1538 from mino181295/fix/ZOOKEEPER-4000/process-sync-code