Fix race condition during pending range calculation

Patch by Josh McKenzie; reviewed by Tyler Hobbs for CASSANDRA-7390