Get the current wait count of a semaphore.
The function semaphore-wait-count
returns the current number of units that other threads are waiting for from the semaphore sem. The value wait-count is 0 if the semaphore has no thread waiting for it.
semaphore
make-semaphore
semaphore-acquire
semaphore-count
semaphore-release
Counting semaphores
LispWorks User Guide and Reference Manual - 20 Sep 2017