Proposal for threadId implementation

only drawback: threadId get's only initialized/increased if threadId() get's called. So it doesn't count the number of threads started at runtime.