[Workers] Fixing base thread class