XWIKI-11573: Make the automatically set Thread classloader dynamic