fix compile error + add new mode w/ counters
kvdb: guard purge w/ rcu region
kvdb: make batch size consistent with ndb