Golden State have won their seventh NBA game on the bounce, and 12th in 13, by holding off the New York Knicks in San Francisco.