Bug 998795: Use nsAutoPtr to initialize MainThreadIOLoggerImpl(); r=froydnj