[kodi] Add another Python 3.12 fix (RFBZ#6783)