On the Krein and Friedrichs extensions of a positive Jacobi operator