Seahawks win at San Francisco for first time since 2008