Add semaphore to make requests serial.
applied Eric's semaphore change to compiler-service.rkt