Fixed thread alive check with pthread_kill, returns 0 on dead thread.