New sp_cond API implemented for Windows

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>