[Compaction] Change functions of Compactor to be non-const.

Summary:
Change functions of Compactor to be non-const, giving classes which
implement Compactor the flexibility to update their local stats.

Test Plan:

Reviewers:

Subscribers: