Lua: remap file descriptors in Lua and GC at exit (fixes #8898)
Lua: sanitize events passed to poll()
Fix buffer off-by-one (cid #1099713)
Contrib: zvbi should not need RECONF anymore
Correctly check the index in the pref. list when selecting the ES.

The former check wasn't enough since a language that isn't in the table
has a -1 index.

Fix #9531