resourceutil: start using importlib.resources.files() when possible
This avoids DeprecationWarnings related to our use of resources.open_binary()
on Python 3.11.
tests: fix a typo in test-demandimport.t
I guess we figured out why it wasn't lazy.
tests: os module is frozen in Python 3.11 (
issue6786)