Bug 859662 - Cursor based getThreads(). r=julienw