Moved URLLoader profiling hooks to main thread