lqueue: implement logic to wait for lqueue3 even loop to finish