HSEARCH-1637 Correct concurrency issues with SerializationProvider implementations