Fixed an issue where the last N load commands in the mach-o core file would not be read in where N was the number of LC_THREAD load commands.

I now properly increment the ncmds for each LC_THREAD and now core files are saved correctly.

<rdar://problem/18312703> 

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@217905 91177308-0d34-0410-b5e6-96231b3b80d8