Changes dispatch_semaphore_wait and releases semaphore in IMBLibraryController