am a12c5445: Fix unused warnings in pthread.c

* commit 'a12c54454f3a6132988b68873903f6e9eed7f384':
  Fix unused warnings in pthread.c