Set context class loader when creating ORC writer

The ORC memory manager ends up loading VersionInfo which loads classes
from the context class loader. The tests now set an empty class loader
to verify that it uses the correct class loader.