When using nettrace to adapt to different kernels, some kernels'
bpf_get_stickid will return an invalid stackid, and later nettrace will
use an invalid stackid to trigger the BPF system call to obtain stack
information, which fails.
Verify stackid before triggering BPF system calls to avoid triggering
invalid system calls