Changed global sem access in Linux

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