tests/test_nsca.c: Check open(2)'s return value

Make Coverity Scan happy.