MULE-6800: Thread leak on Mule redeployments for embedded

_Fixing build on JDK 5