A judge has dismissed class-action lawsuits brought by Hollywood writers who claim that entertainment studios have refused to hire them because they are older. “The writers, all of them over 40, claimed they were ‘gray-listed’ by networks, producers and agents who systematically refused to hire or represent them because of their age.