If you read the manpage for semget, in the Notes section you'll notice:
> System wide maximum number of semaphore sets: policy dependent (on Linux, this limit can be read and modified via the fourth field of `/proc/sys/kernel/sem`).
On my system, `cat /proc/sys/kernel/sem` reports:
250 32000 32 128
So do that on your system, and then echo it back after increasing the last number:
printf '250\t32000\t32\t200' >/proc/sys/kernel/sem
(There are tab characters between the numbers, so I'm using `printf` to generate them.)