The line here allows the code to leave the retry for-loop once max retries are exceeded. The scenario where it gets hit is quite rare: insert attempt, DuplicateKey error and find check finds nothing, and this would have to happen twice in a row.
The MONGO_UNREACHABLE after the loop shouldn't be there (obviously, since it was hit in BF-4593).