This method is for `LibraryScanner` thread, so it is required to acquire semaphores only once. It is not used for simultaneous calls from other threads. Maybe method name is not clear, mean it to lock semaphores in library-scan time.