fix dlsym of thread-local symbols on archs with DTP_OFFSET!=0