Semaphore template for Win32.