semaphore for process control using cygwin on win 7