static void setData(final KVStoreClosure closure, final Object data) {
        if (closure != null) {
            // closure is null on follower node
            closure.setData(data);
        }
    }
Sets the result first, then gets it by {@link #getData(KVStoreClosure)}
when we ensure successful.

@param closure callback
@param data    data
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/storage/BaseRawKVStore.java