HCOLL-131 fix a thread safety bug using read/writeUTF in the same segment of an SHM.