Cyclotron Motion in the Vicinity of a Lifshitz Transition in Graphite