Merge "Ensure waitForIdle() waits until pending messages are handled." into rvc-dev