Share a semaphore between process and a kernel task.