Lack of discipline dooms 49ers in Seattle