src/liboping.c: Use thread-safe error handling.