uwrap: Add optimistict pthread_exit() clenaup.

Threads should call pthread_exit() in the end.

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

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