Race condition in error reporting during MassIndexer

https://hibernate.atlassian.net/browse/HSEARCH-1562

Indirectly also resolves:
- https://hibernate.atlassian.net/browse/HSEARCH-1516
- https://hibernate.atlassian.net/browse/HSEARCH-1278