Fix crash if thread name can't be determined

If the thread number can't be parsed, name is autoreleased and deallocated
prematurely, possibly causing crashes.
Fix thread number parsing for iOS 8