Fix pthread_create error handling in ril.

Bug: https://code.google.com/p/android/issues/detail?id=64189
Change-Id: Ie6282dda582a574aaad5513c39f2d8d965f6dee3
Merge branch 'cm' into HEAD