[libc] Ensure the result of the clone syscall is not on stack in thrd_create.

Also, added a call to munmap on error in thrd_create.

GitOrigin-RevId: 3383ec5fdd04be095678e0bd8bd1ce341f4f9294
2 files changed