Create classloader in a privileged block