Fix: utils.c : clear old error

Theoretically the return value of dlsym can be null.
Old error conditions should be cleared before the call of dlsym.
See man(3) dlsym.