También puedes sustituir el primer IN por un EXISTS, que funciona mucho más rápido:
Código SQL
[-]select * from creditos A where exists
(select idcredito from cuotascreditos B
where idestadocuota in(4,7) and A.idcredito=B.idcredito
group by idcredito having count(*) >= 3)