[backport]wait for safe state for alive instance (possible solution)

fixes #4302