tests/test_nsca.c: Don't forget to close PID file

Don't forget to close the PID file if some error occurred while reading
the file or while killing the server.

Discovered by Coverity Scan.