Snapshot all trees under checkpointId (evicts oldest beyond cap).
checkpointId
void checkpoint(int id, int checkpointId);