Fix data races in lazy deserialization.