staging/lustre/lnet: fix potential null pointer dereference