Using OS call for thread sleep on Windows in an attempt to be more robust when system time is changed.