Handle writes arriving while reads are in progress correctly.