Fix a problem where identical, immediate tasks issued in rapid sequence would starve the replication loop.
Fix a problem where identical, immediate tasks issued in rapid sequence would starve the replication loop.

EricssonResearch/calvin-base,EricssonResearch/calvin-base,EricssonResearch/calvin-base,EricssonResearch/calvin-base