[fix] checking thread support using config