fix missing synchronization in calls from dynamic linker to global ctors