reserve a semaphore and get its semaphore identifier
The semaphores are a critical resource for the kernel. Each semaphore 'slot' inside the runtime is reserved only once and can never be freed again. The semaphore identifier is copied into the slot and the slot index is returned as semaphore identifier. This identifier must be used in subsequent calls to vbegexcl and vendexcl.