Contents:
Defined in File csem.h
Lock the semaphore only if it is currently available.
Otherwise, do nothing.
sem – The semaphore handle.
status_t.