- Added a semaphore for sync purposes of semaphore's API.