Fix the thread support

The target_gdbarch is now a macro, so the patch as to follow this change