#52048t3lib_lock in mode semaphore has wrong internal state
Description
t3lib_lock in mode semaphore does not properly set isAcquired.
The case when sem_acquire() fails is not handled at all.
t3lib_lock in mode semaphore does not properly set isAcquired.
The case when sem_acquire() fails is not handled at all.