MULE-7624: Change JMX tests so that they use a random port

(cherry picked from commit 75f902adabfb4321cdc0998131a370dfd190d06c)