use mutex instead of semaphore in isdn subsystem common functions