[SP-1411] - Backport of PDI-12599 - MongoDB Output step has a race condition in batch insert retries that can cause errors to be logged. (5.1)

Backport of https://github.com/pentaho/pentaho-mongodb-plugin/pull/73