fix a lot of static initialization races
fix a lot of static initialization races

Change-Id: Ib3ada855c79f1c534f9efe8d559c3b721d2a0309
Reviewed-on: http://gerrit.aldebaran.lan/44394
Reviewed-by: pdaouadi <fc1eb3334d3fdad315bae23aa166bc70bd434067@aldebaran-robotics.com>
Tested-by: pdaouadi <fc1eb3334d3fdad315bae23aa166bc70bd434067@aldebaran-robotics.com>

vbarbaresi/libqi,bsautron/libqi,aldebaran/libqi,aldebaran/libqi,aldebaran/libqi