Delete currThread variable if there is no state.thread