Prevent "index out of bounds" error when sync::SegmentedCache
was created with a non-power-of-two segments
#117
+23
−1