Change wait condition for YZ index write to be more deterministic