Klay Thompson knocked down a go-ahead 3-pointer with 36.6 seconds left and the Warriors came through with defensive stops when they count