Kernel/Semaphores: Invert the available count checking.

Same semantics, idea by @yuriks