In _ensureState() refining the waiting strategy. These multi-threaded issues
are always very challenging to solve.
Authored by: nerius 2024-09-16
Parent: [r1982]
Child: [r1984]