Bug 929919 - [Messaging] getThreads optimization r=julienw