Coherent Timing of the Accreting Millisecond Pulsar NGC 6440 X-2