lib: Fix a few warnings.

Mostly harmless signed and unsined integer comparsions.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
syscalls/ipc: Make use of tst_require_root()

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>