on stock android, pthread_cancel and phtread_setcancelstate doesn't exist

Change-Id: Icbe281a301004ae2bcda4821a50fb4a41088e85d