How to fix semaphore timeout period has expired? (3 Solutions!!)