[test] when the config change, we should cleanup sys.path and sys.modules. Closes #3634164
Without this, modules imported within instance home will be messed up.
usr/lib/PY_VERSION/*-packages/cubicweb/server/
usr/lib/PY_VERSION/*-packages/cubicweb/hooks/
usr/lib/PY_VERSION/*-packages/cubicweb/sobjects/
usr/lib/PY_VERSION/*-packages/cubicweb/schemas/
usr/share/cubicweb/migration/