Sharks hang on to beat Kings