uwrap: Support scenario where threads creates threads.

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