Race condition in DataWriter.uninitialized, backport #1214