Fix unittest for SysV IPC shared memory

 - Set permission for shared memory, it's required in x86.
Fix SysV IPC for x86