Provide INIT_SEMAPHORE macro for initializaing static semaphores

init_semaphore is used for dynamic semaphores.