uwrap: Add pthread_exit() cleanup.

Threads should call pthread_exit() in the end of existence.

TESTS: Add pthread_exit() calls to test_glibc_thread_support.c.

Signed-off-by: Robin Hack <hack.robin@gmail.com>