Thread safety for linker and linker test