corrected waittime in jsemaphore.cpp