Added named semaphore context locking - 1