Fix compilation issue in tests/ due to wrong type

	* tests/threads.cc (thread_func): Type of unused
	variable tid changed from int to pthread_t.

Signed-off-by: Dodji Seketeli <dodji@seketeli.org>