Improved waiting in WmiProcess and WinServiceStopTask

Hi,

Just in case someone is interested...
I suggest small improvements to WaitForProcessToDie in WinServiceStopTask and WaitForPidToDie in WmiProcess.

I hope it helps

Regards