protect DB access to jobResults by semaphore