Update src/cxtracker.c

Moved pruning to be done on disk write.