gh-116590: Fix unused `current_thread_holds_gil` function warning (#116591)

1 file changed