make dlerror threadsafe on windows

Change-Id: I0b15347b366f163e7eccfe4c94c57fad31bc642f
Reviewed-on: http://gerrit.aldebaran.lan/21252
Reviewed-by: proullon <proullon@aldebaran-robotics.com>
Reviewed-by: llec <llec@aldebaran-robotics.com>
Tested-by: gerrit
ran codespell -w

Change-Id: I69523e74b3395ced7b77312f90dd2724ed4cce80
Reviewed-on: http://gerrit.aldebaran.lan/21184
Reviewed-by: mnottale <mnottale@aldebaran-robotics.com>
Reviewed-by: cgestes <gestes@aldebaran-robotics.com>
Tested-by: dmerejkowsky <dmerejkowsky@aldebaran-robotics.com>