system-linux: fix segfault on alloc failure in system_if_check()