Update thread.h for PSP