Locally finite groups with finitely many isomorphism classes of derived subgroups