Revert "Make the linker API thread-safe"