Bug 996487: don't null out mThread while committing thread suicide r=bsmedberg
Bug 998880: don't busy-wait in nsThread waiting for shutdown or DISPATCH_SYNC r=bsmedberg