[PATCH RFC 2/5] tools/nolibc: add helpers for wait() signal exits