Fix setting/getting the native priority of a thread. am: fa59588533
am: 69736acc4e

Change-Id: I9f1b3ba9a9d40d166a2f9572e6575ac720fbe097