Use port scanning for JMX tests

Attempt to fix performance build by scanning for a free JMX port.