Fix DeepCompile last use for unconsumed waits (#8254)