Kodaira fibrations and mapping class groups