uwrap: Disable uwrap only for the thread which called fork().

When fork() is called here is no need to disable uwrap as a whole.  This
change disables only uwrap for thread which called fork().

Also cleanup is needed in uwrap_thread_child().

Signed-off-by: Robin Hack <hack.robin@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
uwrap: Rewrite uwrap_libc_fns struct to pass strict aliasing rules.

Now uwrap is compiled with -O2 -fstrict-aliasing -Wstrict-aliasing=2
C compiler flags.

Signed-off-by: Robin Hack <hack.robin@gmail.com>
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>