libaurum: add a logic to wait for idle