Set the classloader for native threads if they don't have one.