[bugfix] [rtai] make shared mutex also RES_SEM

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>