Fix race condition
Fix race condition

Fix ArgumentOutOfRangeException if a solution is found for the first range but hasn't been added to the searched ranges yet, and another task tries to check for whether a better solution has been found yet.

martincostello/adventofcode,martincostello/adventofcode,martincostello/adventofcode,martincostello/adventofcode