Fixed: wait_for_completion() could block forever