SysV SHM: move SHMSEG constants to sys/shm.h
(cherry picked from commit 53725168e1b631be0e60f888ba5e63e140b57766)