Upgrade JMock to 2.6.0 and use its new functionalities

It should prevent often SSL test hangs