[PATCH v7 08/37] tools/nolibc: Implement gettid()