Simplify POSIXThread register context handling

This seems a little more straightforward and is equivalent to r201457
for ELF core files.  A case for FreeBSD i386 is also added (it was
incorrectly using the 64-bit register context and corrupting mememory).

Better (user-facing) error handling is still needed.

Review: http://llvm-reviews.chandlerc.com/D2765


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