REGRESSION (r206247): Painting milestones can be delayed until the next layer flush