use mutex instead of semaphore in hdaps driver