JENKINS-24272 jnlp slaves fail to reconnect when master is restarted

The corresponding remoting changes are already in remoting 2.45