[lit] Speculatively fix PR24554 by manually closing the process handle