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

proof of concept fix. The final fix requires the corresponding changes to remoting.jar to be released and pom.xml to be updated to include that.

Tested using combinations of old slave.jar and new slave.jar to ensure that everything interoperates in a sane manner until slave.jar is updated on each slave.