Actually block in a windows cvar

Turns out with an argument of 0 the function always returns immediately!

Closes #11003
auto merge of #11199 : alexcrichton/rust/windows-isnt-waiting, r=pcwalton

Turns out with an argument of 0 the function always returns immediately!

Closes #11003