Added semaphore hookup and lock for NDNInputStage