2a8e976: use Threading::IsSimThread instead (thanks jK)