Stop leaking <defunct> llc processes
We needed to wait for the process to exit in the clean-up script as
otherwise the llc
process will not be killed until compilation
finishes. This leads to running out of process spaces on some OSs.
Thanks to Edsko de Vries for suggesting this fix.
Fixes #20305 (closed)