Fix thread safety of TThread::TThread(Long_t id)

Changing fId is a common ressource (see TThread::GetThread)
and thus its update must be locked.