semctl: fix UB causing crashes on powerpc

it's UB to fetch variadic args when none are passed, and this caused
real crashes on ppc due to its calling conventions, which passes
aggregate types as pointers. the assignment then caused that pointer
to get dereferenced, resulting in a crash when the variadic argument
was not passed by the caller.