49ers finish 5-11 after OT victory vs Rams