The error was related in how the semaphores are created.
It closes project/13/13mdis/linux/13MD05-90#364 (closed)