[PATCH v6 07/37] tools/nolibc: Implement gettid()