user18667: I am doing endgame training with LucasChess (LC), but the problem is not really related to LC, but to chess engines in general. 
I have this problem: See picture. When I move  Kh6 in this position, the engine in LC moves Ke8. Probably this is the move with which white needs the most moves until mate.
But it is also the move which makes things easy for white.  It would be harder for white if black would move Kg8, trying to block the pawn until it is no longer possible and maybe provoking a stalemate.
Instead of blocking, black flees in direction  to the center.
I assume the engine sees that with fleeing to the center it is maybe a mate in 20 and without fleeing and trying to block it is maybe a mate in 16. So it makes the "optimal" move with which the distance to mate is the longest.
But this is not the best human like move.  Because it makes it easier for white to queen its pawn. It clears all possibilities for white to make mistakes and in this way it takes away an important part of the training effect.
I have seen this behaviour in nearly all pawn endings, not only this one; and also in other endings.  
All engines I've tried show this behaviour.  (Komodo, Stockfish, Gull, Gaviota, Fruit)
So my question is: Do you know a free engine or some settings for an engine which plays endgames human-like, trying to block pawns as long as possible instead of fleeing with the king to the center?
Update: konsolas found an engine (Leela or Lc0) which treats the given position well and so at first I accepted his answer as the answer. 
In between I've tested Lc0 more and came to the conclusion that it is absolutely not usable for endgame training, because it plays most endings catastrophically. When accepting the answer, I couldn't even imagine any engine playing endgames so bad. 
So I want to clarify my question: Do you know a free engine or some settings for an engine which, with movetime 1s or below, without needing a graphics card, plays endgames human-like, trying to block pawns as long as possible instead of fleeing with the king to the center? 
Lc0  with current nets or dkappe's distilled nets do not qualify, because these play most endgames horribly and absolutely non-human-like on a PC without graphics card. And from all what I've read a graphics card even won't help for its endgame play. 
Update 2:
I'd like to clarify that it is not only the position above, but a lot of others, too. Engines play the move which makes distance to mate biggest, assuming perfect play of the opponent.  Example 8/8/8/6K1/8/8/3Q2kp/8 b - - 4 9, see second picture. 
Engines play  Kf3, which makes it very easy for W.    What B should play is Kg1, and now it's much harder for W to win. W then needs to know or find that he has to allow B to queen. 

user13147: Freechess.org has a bot called endgamebot you can play against.
It knows up to 6-man endgames.

user10075: Alpha-beta engines, in many endgame positions, will quickly find a mate and therefore will pick the move which prolongs the mate for the longest.
Engines which use Monte Carlo Tree Search, however, pick the line with the greatest winning/drawing chances. For example, Lc0, a neural network engine which uses MCTS, suggests Kg8 as you wanted in your position:
8/6k1/6P1/7K/6P1/8/8/8 b - - 0 1

1...Kg8 2.Kh6 Kh8 3.Kg5 Kg7 4.Kf5 Kg8 5.Kf6 Kf8

Lc0 does not play endgames as well as alpha-beta engines, but it tends to play them in a much more human manner.
I would also suggest taking a look at Komodo 12 MCTS, which may also exhibit this type of behaviour.

18667: <p>I am doing endgame training with LucasChess (LC), but the problem is not really related to LC, but to chess engines in general. </p>

<p>I have this problem: See picture. When I move  Kh6 in this position, the engine in LC moves Ke8. Probably this is the move with which white needs the most moves until mate.<a href="https://i.stack.imgur.com/YilI8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YilI8.png" alt="position: w:Kh5, Pg6, Pg4, b:Kf8, white to move"></a></p>

<p>But it is also the move which makes things easy for white.  It would be harder for white if black would move Kg8, trying to block the pawn until it is no longer possible and maybe provoking a stalemate.
Instead of blocking, black flees in direction  to the center.</p>

<p>I assume the engine sees that with fleeing to the center it is maybe a mate in 20 and without fleeing and trying to block it is maybe a mate in 16. So it makes the "optimal" move with which the distance to mate is the longest.</p>

<p>But this is not the best human like move.  Because it makes it easier for white to queen its pawn. It clears all possibilities for white to make mistakes and in this way it takes away an important part of the training effect.</p>

<p>I have seen this behaviour in nearly all pawn endings, not only this one; and also in other endings.  </p>

<p>All engines I've tried show this behaviour.  (Komodo, Stockfish, Gull, Gaviota, Fruit)</p>

<p>So my question is: Do you know a free engine or some settings for an engine which plays endgames human-like, trying to block pawns as long as possible instead of fleeing with the king to the center?</p>

<p><strong>Update:</strong> konsolas found an engine (Leela or Lc0) which treats the given position well and so at first I accepted his answer as <em>the</em> answer. 
In between I've tested Lc0 more and came to the conclusion that it is absolutely not usable for endgame training, because it plays most endings catastrophically. When accepting the answer, I couldn't even imagine any engine playing endgames so bad. </p>

<p>So I want to clarify my question: Do you know a free engine or some settings for an engine which, with movetime 1s or below, without needing a graphics card, plays endgames human-like, trying to block pawns as long as possible instead of fleeing with the king to the center? </p>

<p>Lc0  with current nets or dkappe's distilled nets do not qualify, because these play most endgames horribly and absolutely non-human-like on a PC without graphics card. And from all what I've read a graphics card even won't help for its endgame play. </p>

<p><strong>Update 2:</strong>
I'd like to clarify that it is not only the position above, but a lot of others, too. Engines play the move which makes distance to mate biggest, assuming perfect play of the opponent.  Example 8/8/8/6K1/8/8/3Q2kp/8 b - - 4 9, see second picture. 
Engines play  Kf3, which makes it very easy for W.    What B should play is Kg1, and now it's much harder for W to win. W then needs to know or find that he has to allow B to queen.<a href="https://i.stack.imgur.com/QPSdH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QPSdH.png" alt="8/8/8/6K1/8/8/3Q2kp/8 b - - 4 9"></a> </p>
 13147: <p>Freechess.org has a bot called endgamebot you can play against.</p>

<p>It knows up to 6-man endgames.</p>
 10075: <p>Alpha-beta engines, in many endgame positions, will quickly find a mate and therefore will pick the move which prolongs the mate for the longest.</p>

<p>Engines which use Monte Carlo Tree Search, however, pick the line with the greatest winning/drawing chances. For example, <a href="https://github.com/LeelaChessZero/lc0" rel="noreferrer">Lc0</a>, a neural network engine which uses MCTS, suggests Kg8 as you wanted in your position:</p>

<pre><code>8/6k1/6P1/7K/6P1/8/8/8 b - - 0 1

1...Kg8 2.Kh6 Kh8 3.Kg5 Kg7 4.Kf5 Kg8 5.Kf6 Kf8
</code></pre>

<p>Lc0 does not play endgames as well as alpha-beta engines, but it tends to play them in a much more human manner.</p>

<p>I would also suggest taking a look at Komodo 12 MCTS, which may also exhibit this type of behaviour.</p>
