Tweak a multithreaded LogTest method

Avoiding overlapping writes to a nonvolatile variable reference