Wait for the child CLEARTID futex value to actually be cleared to avoid racing with the kernel.
Make munmap() more flexible per POSIX spec.